import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'my_logic.dart';

class MyPage extends StatefulWidget {
  @override
  _MyPageState createState() => _MyPageState();
}

class _MyPageState extends State<MyPage> {
  final MyLogic logic = Get.put(MyLogic());

  @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: Center(
          child: Text("my"),
        ),
      );
    }

  @override
  void dispose() {
    Get.delete<MyLogic>();
    super.dispose();
  }
}